package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.ComboCardExpensiveRecordTemp;

public interface ComboCardExpensiveRecordTempMapper
{
    int deleteByPrimaryKey(Long combocardExpensiveTempId);

    int insert(ComboCardExpensiveRecordTemp record);

    int insertSelective(ComboCardExpensiveRecordTemp record);

    ComboCardExpensiveRecordTemp selectByPrimaryKey(Long combocardExpensiveTempId);

    int updateByPrimaryKeySelective(ComboCardExpensiveRecordTemp record);

    int updateByPrimaryKey(ComboCardExpensiveRecordTemp record);

    ComboCardExpensiveRecordTemp loadBySerialNum(String serialNum);

    ComboCardExpensiveRecordTemp loadByMerQr(@Param("merchantCode") String merchantCode, @Param("qrCode") String qrCode);

    int setExceptionStatus(@Param("merchantCode") String merchantCode, @Param("posCode") String posCode,
            @Param("comboCardExpensiveTempId") long comboCardExpensiveTempId);

    List<ComboCardExpensiveRecordTemp> selectByMerchant(@Param("merchantCode") String sellerCode,
            @Param("serialNo") String serialNo, @Param("cardNo") String cardNo, @Param("beginTime") String beginTime,
            @Param("endTime") String endTime, @Param("firstIndex") int i, @Param("maxRows") int pageSize);

    int getLastSelectTotalNum();
}